<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <link rel="stylesheet" href="utils/reset.css">
    <link rel="stylesheet" href="utils/bootstrap.min.css">
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="css/contact.css">
</head>

<body>
    <!--header头部-->
    <header>
        <div class="header-top">
            <div class="w1200 top-box">
                <span class="left-title">Shanghai Creation Group Co.Ltd</span>
                <div class="circle-box">
                    <ol class="circle-list">
                        <li class="circle-item">
                            <img src="./img/common/China-Circle.png" alt="China-Circle">
                            <span>中</span>
                        </li>
                        <li class="circle-item">
                            <img src="./img/common/Kingdom-Circle.png" alt="Kingdom-Circle">
                            <span>英</span>
                        </li>
                        <li class="circle-item">
                            <img src="./img/common/Germany-Circle.png" alt="Germany-Circle">
                            <span>德</span>
                        </li>
                        <li class="circle-item">
                            <img src="./img/common/Japan-Circle.png" alt="Japan-Circle">
                            <span>日</span>
                        </li>
                        <li class="circle-item">
                            <img src="./img/common/Russia-Circle.png" alt="Russia-Circle">
                            <span>俄</span>
                        </li>
                        <li class="circle-item">
                            <img src="./img/common/Spain-Circle.png" alt="Spain-Circle">
                            <span>西</span>
                        </li>
                        <li class="circle-item">
                            <img src="./img/common/Portugal-Circle.png" alt="Portugal-Circle">
                            <span>葡</span>
                        </li>
                        <li class="circle-item">
                            <img src="./img/common/France-Circle.png" alt="France-Circle">
                            <span>法</span>
                        </li>
                        <li class="circle-item">
                            <img src="./img/common/SouthKorea-Circle.png" alt="SouthKorea-Circle">
                            <span>韩</span>
                        </li>
                        <li class="circle-item">
                            <img src="./img/common/Emirates-Circle.png" alt="Emirates-Circle">
                            <span>阿</span>
                        </li>
                    </ol>
                </div>
            </div>
        </div>

    </header>
    <nav class="navbar">
        <div class="w1200 navbar-box">
            <div class="logo">
                <h1>
                    <a href="./index.html" role="img" class="logo-bd clearfix" title="logo-title">logo-title</a>
                </h1>
            </div>
            <ul class="link-box">
                <li class="active">
                    <a href="./index.html">首页</a>
                </li>
                <li>
                    <a href="./about.html">关于我们</a>
                </li>
                <li>
                    <a href="./quality.html">质量保证</a>
                </li>
                <li>
                    <a href="./center.html">产品中心</a>
                </li>
                <li>
                    <a href="./product.html">产品应用</a>
                </li>
                <li>
                    <a href="./new.html">新闻媒体</a>
                </li>
                <li>
                    <a href="./contact.html">联系我们</a>
                </li>
                <li>
                    <a href="./composition.html">集团组成</a>
                </li>
            </ul>
            <div class="search-box">
                <i class="search"></i>
                <input type="text" placeholder="搜索">
                <i class="awrrod"></i>
            </div>
        </div>
    </nav>
    <!--header头部-->

    <div class="about-banner contact">
        <h2>｜ 联系我们 ｜</h2>
        <div class="title">Contact Us</div>
    </div>

    <section class="section-tab w1200">
        <ul class="tab-box">
            <li class="item-top item">
                联系我们
            </li>
            <li class="item active">
                <a href="./contact.html">询盘表单提交</a>
            </li>
            <li class="item ">
                <a href="./contact-media.html">社交媒体</a>
            </li>
            <li class="item">
                <a href="./contact-position.html">公司位置</a>
            </li>

        </ul>
        <div class="main-box">
            <div class="main-title">
                <h3>询盘表单提交</h3>
                <p>联系我们 <i>/</i> <span>询盘表单提交</span></p>
            </div>
            <div class="about-box">
                <div class="fromBox flex-column align-items-center">
                    <h1>REQUEST A QUOTE</h1>

                    <form id="formList" class="flex-column">
                        <div class="flex-row space-between">
                            <input class="mr32 flex1 name" type="text" placeholder="Full Name">
                            <input class="flex1 email" type="text" placeholder="Email">
                        </div>
                        <div class="flex-row space-between mt32">
                            <input class="mr32 flex1 company" type="text" placeholder="Company">
                            <input class="flex1 jobtitle" type="text" placeholder="Job Title">
                        </div>
                        <div class="flex-row space-between mt32">
                            <input class="mr32 flex1 address" type="text" placeholder="Business Address">
                            <input class="flex1 phone" type="text" placeholder="Phone">
                        </div>
                        <div class="flex-row space-between mt32">
                            <select class="mr32 flex1 slitCoil" name="" id="">
                              <option value="0">线材类型</option>
                                <option value="1">成卷线材</option>
                                <option value="2">异形线材</option>
                            </select>
                            <input class="flex1 quantity" type="text" placeholder="Quantity">
                        </div>
                        <textarea class="mt32 material" name="" id="" cols="30" rows="5"
                            placeholder="Material"></textarea>
                        <textarea class="mt32 packagingRequirements" name="" id="" cols="30" rows="5"
                            placeholder="Packaging Requirements"></textarea>
                        <div class="flex-row submit mt32 space-between">
                            <div class="flex-row align-items-center radioPraent">
                                <input class="radio" type="radio" name="" id="">
                                <span>Agree to </span>
                                <a href="#">Terms of Service</a>
                            </div>

                            <a href="#" class="flex-row center submit-btn">
                                SEND MESSAGE
                                <img src="./img/contact/arrow.png" alt="SEND MESSAGE">
                            </a>

                        </div>

                    </form>


                </div>

            </div>
        </div>
    </section>



    <!--footer-->
    <footer>
        <div class="footerBox w100 flex center">
            <div class="w1200   flex-row space-between">
                <div class="logo">
                    <a href="./index.html" role="img" class="logo-bd footLogo clearfix" title="logo"></a>
                </div>
                <ul>
                    <li>
                        <h3>关于我们</h3>
                    </li>
                    <li><a href="#">团队实力</a></li>
                    <li><a href="#">可持续发展</a></li>
                    <li><a href="#">安全第一</a></li>
                    <li><a href="#">精细化运营</a></li>
                    <li><a href="#">能源设备</a></li>
                    <li><a href="#">招聘中心</a></li>
                    <li><a href="#">下载中心</a></li>
                </ul>

                <ul>
                    <li>
                        <h3>产品应用</h3>
                    </li>
                    <li><a href="#">汽车行业</a></li>
                    <li><a href="#">建筑行业</a></li>
                    <li><a href="#">机械设备行业</a></li>
                    <li><a href="#">其他行业</a></li>
                </ul>

                <ul>
                    <li>
                        <h3>产品中心</h3>
                    </li>
                    <li><a href="#">成卷线材</a></li>
                    <li><a href="#">异形线/管</a></li>

                </ul>
                <ul>
                    <li>
                        <h3>新闻&媒体</h3>
                    </li>
                    <li><a href="#">公司&行业新闻</a></li>
                    <li><a href="#">媒体库</a></li>
                </ul>
                <ul>
                    <li>
                        <h3>联系我们</h3>
                    </li>
                    <li><a href="#">询盘表单提交</a></li>
                    <li><a href="#">社交媒体</a></li>
                    <li><a href="#">公司位置</a></li>
                </ul>
                <ul>
                    <li>
                        <h3>睿雄集团组成</h3>
                    </li>
                </ul>

            </div>

        </div>
        <div class="footeTwo  w100 flex center">
            <div class="w1200 h100 flex-row space-between align-items-center">
                <ul class="flex-row ulNav">
                    <li><a href="#">Contact us</a></li>
                    <li><a href="#">Location finder</a></li>
                    <li><a href="#">Sitemap</a></li>
                    <li><a href="#">Legal</a></li>
                    <li><a href="#">Privacy</a></li>
                </ul>
                <ul class="flex-row ulImg align-items-center">
                    <li><a href="#"><img src="./img/common/facebook1.png" alt="facebook"></a></li>
                    <div class="border"></div>
                    <li><a href="#"><img src="./img/common/facebook2.png" alt="facebook"></a></li>
                    <div class="border"></div>
                    <li><a href="#"><img src="./img/common/facebook3.png" alt="twitter"></a></li>
                </ul>

            </div>
        </div>
    </footer>
    <!--footer-->

    <script src="utils/jquery-1.8.3.min.js"></script>
    <script src="utils/bootstrap.min.js"></script>
    <script>
        window.onload = function () {
            var submit = $('#formList .submit-btn')
            var validate = function () {
                var name = $('#formList .name')
                var email = $('#formList .email')
                var radio = $('#formList .radio')
                var radioPraent = $('#formList .radioPraent')
                if (!name.val()) {
                    name.addClass('error')
                    return false
                } else {
                    name.removeClass('error')
                }
                if (!email.val()) {
                    email.addClass('error')
                    return false
                }
                else {
                    email.removeClass('error')
                }
                // 验证邮箱格式
                var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/
                if (email.val() && !reg.test(email.val())) {
                    email.addClass('error')
                    return false
                } else {
                    email.removeClass('error')
                }
                // 验证radio是否被选中
                if (!radio.is(':checked')) {
                    radioPraent.addClass('error')
                    return false
                } else {
                    radioPraent.removeClass('error')
                }
                return true
            }
            $('#formList .name').on('change', function () {
                validate()
            })
            $('#formList .email').on('change', function () {
                validate()
            })
            $('#formList .radio').on('change', function () {
                validate()
            })
            submit.on('click', function (e) {
              e.preventDefault()
                let flag = validate()
                if (!flag) return
                var name = $('#formList .name')
                var email = $('#formList .email')
                var company = $('#formList .company')
                var jobtitle = $('#formList .jobtitle')
                var address = $('#formList .address')
                var phone = $('#formList .phone')
                var slitCoil = $('#formList .slitCoil')
                var quantity = $('#formList .quantity')
                var material = $('#formList .material')
                var packagingRequirements = $('#formList .packagingRequirements')
                let data = {
                    name: name.val(),
                    email: email.val(),
                    company: company.val(),
                    jobtitle: jobtitle.val(),
                    address: address.val(),
                    phone: phone.val(),
                    slitCoil: slitCoil.val(),
                    quantity: quantity.val(),
                    material: material.val(),
                    packagingRequirements: packagingRequirements.val()
                }
                console.log('data', data)
                // 发送请求
            })
        }
    </script>
</body>

</html>